home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / vbcc / machines / amiga68k / vconfig / help.c next >
Encoding:
Text File  |  1998-06-24  |  1.9 KB  |  71 lines

  1. void help(int menu)
  2. {
  3.     char buf[100];
  4.  
  5.     printf("\n\nHelp:\n\n");
  6.  
  7.     switch(menu)
  8.     {
  9.         case CODE:
  10.             printf("CPU: -cpu=n\n");
  11.             printf("Generate code for current CPU and upwards.\n\n");
  12.  
  13.             printf("Floating point: -fpu=n\n");
  14.             printf("Enables the usage of \"float\".\n");
  15.             printf("IEEE is for all systems.\n");
  16.             printf("FPU  is for systems with a FPU co-processor.\n\n");
  17.  
  18.             printf("Code model: -sc\n");
  19.             printf("vbcc can access static data in two ways. By default all such data will\n");
  20.             printf("be accessed with full 32bit addresses (large data model).\n");
  21.             printf("However there is a second way. You can set up an address register (a4)\n");
  22.             printf("to point into your data segment and then address data with a 16bit\n");
  23.             printf("offset through this register.\n\n");
  24.  
  25.             printf("Data model: -sd\n");
  26.             printf("If you use the small code model calls to external functions (i.e. from\n");
  27.             printf("libraries or other object files) are done with 16bit offsets over\n");
  28.             printf("the program counter rather than with absolute 32bit addresses.\n\n");
  29.             break;
  30.  
  31.  
  32.         case COMPILER:
  33.             printf("Link with stdlib: -nostdlib\n");
  34.             printf("do not link with standard-startup/libraries; useful only\n");
  35.             printf("for people who know what they are doing.\n\n");
  36.  
  37.             printf("Max errors: -maxerrors=n\n");
  38.             printf("Max number of errors before stop compiling.\n\n");
  39.  
  40.             printf("Strip filename: -strip-path\n");
  41.             printf("Only show filenames in VBCC's error messages.\n\n");
  42.             break;
  43.  
  44.  
  45.  
  46.         case OPTIMIZE:
  47.             printf("Optimize: -On\n");
  48.             printf("Level of optimization done by VBCC.\n\n");
  49.  
  50.  
  51.  
  52.         
  53.             break;
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.     }
  66.  
  67.     printf("Press <return>");
  68.     gets(buf);
  69. }
  70.  
  71.